package com.tancire.net.domain;

import java.math.BigDecimal;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.tancire.common.annotation.Excel;
import com.tancire.common.core.domain.BaseEntity;

/**
 * 商品管理对象 shop_goods
 *
 * @author chenchao
 * @date 2023-11-20
 */
public class ShopGoods extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;

    /**
     * 所属分类
     */
    @Excel(name = "所属分类")
    private Long goodsCategoryId;

    /**
     * 所属分类名称
     */
    @Excel(name = "所属分类名称")
    private String goodsCategoryCode;

    /**
     * 名称
     */
    @Excel(name = "名称")
    private String goodsName;

    /**
     * 描述
     */
    @Excel(name = "描述")
    private String goodsDesc;

    /**
     * 主图
     */
    @Excel(name = "主图")
    private String mainPic;

    /**
     * 缩略图
     */
    @Excel(name = "缩略图")
    private String thumbnailPic;

    /**
     * 销售类型 0 仅积分 1 仅现金 2 积分现金都可以
     */
    @Excel(name = "销售类型 0 仅积分 1 仅现金 2 积分现金都可以")
    private String salesType;

    /**
     * 单价
     */
    @Excel(name = "单价")
    private BigDecimal goodsPrice;

    /**
     * 积分单价
     */
    @Excel(name = "积分单价")
    private BigDecimal goodsFenPrice;

    /**
     * 库存
     */
    @Excel(name = "库存")
    private Long goodsTotal;

    /**
     * 排序
     */
    private Long goodsSort;

    /**
     * 状态 0 待上架 1 已上架 2 已下架
     */
    @Excel(name = "状态 0 待上架 1 已上架 2 已下架")
    private String status;

    /**
     * 0 正常  1 删除  真删除，字段保留
     */
    private Integer delFlag;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setGoodsCategoryId(Long goodsCategoryId) {
        this.goodsCategoryId = goodsCategoryId;
    }

    public Long getGoodsCategoryId() {
        return goodsCategoryId;
    }

    public void setGoodsCategoryCode(String goodsCategoryCode) {
        this.goodsCategoryCode = goodsCategoryCode;
    }

    public String getGoodsCategoryCode() {
        return goodsCategoryCode;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsDesc(String goodsDesc) {
        this.goodsDesc = goodsDesc;
    }

    public String getGoodsDesc() {
        return goodsDesc;
    }

    public void setMainPic(String mainPic) {
        this.mainPic = mainPic;
    }

    public String getMainPic() {
        return mainPic;
    }

    public void setThumbnailPic(String thumbnailPic) {
        this.thumbnailPic = thumbnailPic;
    }

    public String getThumbnailPic() {
        return thumbnailPic;
    }

    public void setSalesType(String salesType) {
        this.salesType = salesType;
    }

    public String getSalesType() {
        return salesType;
    }

    public void setGoodsPrice(BigDecimal goodsPrice) {
        this.goodsPrice = goodsPrice;
    }

    public BigDecimal getGoodsPrice() {
        return goodsPrice;
    }

    public void setGoodsFenPrice(BigDecimal goodsFenPrice) {
        this.goodsFenPrice = goodsFenPrice;
    }

    public BigDecimal getGoodsFenPrice() {
        return goodsFenPrice;
    }

    public void setGoodsTotal(Long goodsTotal) {
        this.goodsTotal = goodsTotal;
    }

    public Long getGoodsTotal() {
        return goodsTotal;
    }

    public Long getGoodsSort() {
        return goodsSort;
    }

    public void setGoodsSort(Long goodsSort) {
        this.goodsSort = goodsSort;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStatus() {
        return status;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("goodsCategoryId", getGoodsCategoryId())
                .append("goodsCategoryCode", getGoodsCategoryCode())
                .append("goodsName", getGoodsName())
                .append("goodsDesc", getGoodsDesc())
                .append("mainPic", getMainPic())
                .append("thumbnailPic", getThumbnailPic())
                .append("salesType", getSalesType())
                .append("goodsPrice", getGoodsPrice())
                .append("goodsFenPrice", getGoodsFenPrice())
                .append("goodsTotal", getGoodsTotal())
                .append("status", getStatus())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("delFlag", getDelFlag())
                .toString();
    }
}
